package com.k2091.washcar.mapper;

import com.k2091.washcar.entity.CarOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.k2091.washcar.entity.FormInline;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
public interface CarOrderMapper extends BaseMapper<CarOrder> {

    List<CarOrder> selectCarOrder(FormInline formInline);

    //查询某洗车员的所有订单
//    List<CarOrder> selectOrderByCleaner(Long cleanerId);


    //查询用户未评价订单
//    List<CarOrder> selectUnRank(Long userId);

    //查询订单
    List<CarOrder> selectOrder(@Param("userId") Long userId, @Param("status") Integer status, @Param("cleanerId") Long cleanerId);
}
